ARCH=8
G=$(ARCH)g
L=$(ARCH)l

all: models.a main

models: models.a

models.a:
	$(G) -o models.$(ARCH) models/*.go
	gopack grc models.a models.$(ARCH)

main:
	$(G) -I . -o test.$(ARCH) test.go
	$(L) -o test test.$(ARCH)

clean:
	rm *.a
	rm *.$(ARCH)
	rm test
